StvDEV

 Components

 Drawing

 Extensions

 Inspector

  CaptionedBoolAttribute

  DisableOnRuntimeAttribute

  EnumAttribute

  MinMaxRangeAttribute

  ReadOnlyAttribute

  ShowIfAttribute

  ByFunc

  ByValue

  ConditionalSourceField

  Func

  HideInInspector

  HideType

  Inverse

  ShowIfAttribute(bool)

  ShowIfAttribute(bool, HideType)

  ShowIfAttribute(Func)

  ShowIfAttribute(Func, HideType)

  ShowIfAttribute(string)

  ShowIfAttribute(string, bool)

  ShowIfAttribute(string, bool, HideType)

  ShowIfAttribute(string, HideType)

  Value

 Patterns

 TextMeshPro

 Types

 Vibration

class ShowIfAttribute

Hides or disables the display of a field in the inspector by the value of a field of type bool.
AttributesAttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Struct, Inherited = true, AllowMultiple = true)
VisibilityPublic
ExtendsPropertyAttribute

Public enums

enum HideTypeTypes of interaction on the target field.

Public methods

Constructor ShowIfAttribute(string conditionalSourceField)Hides the display of a field in the inspector by the value of a field of type bool.
Constructor ShowIfAttribute(string conditionalSourceField, bool inverseFieldValue)Hides the display of a field in the inspector by the value of a field of type bool.
Constructor ShowIfAttribute(string conditionalSourceField, HideType hideType)Hides the display of a field in the inspector by the value of a field of type bool.
Constructor ShowIfAttribute(string conditionalSourceField, bool inverseFieldValue, HideType hideType)Hides or disables the display of a field in the inspector by the value of a field of type bool.
Constructor ShowIfAttribute(bool value)Hides or disables the display of a field in the inspector by value.
Constructor ShowIfAttribute(bool value, HideType hideType)Hides or disables the display of a field in the inspector by value.
Constructor ShowIfAttribute(Func<bool> func)Hides or disable the display of a field in the inspector by predicate.
Constructor ShowIfAttribute(Func<bool> func, HideType hideType)Hides or disable the display of a field in the inspector by predicate.

Public properties

bool ByFunc Gets the value of the func.
bool ByValue Gets the value of the by value.
string ConditionalSourceField Gets the value of the conditional source field.
Func<bool> Func Get the valoue of the func.
bool HideInInspector Gets the value of the hide in inspector.
bool Inverse Inverse value in check.
bool Value Gets the value of the value.